#!/bin/bash

# 设置环境变量
export CUDA_PATH=/usr/local/cuda
export PATH=$CUDA_PATH/bin:$PATH
export LD_LIBRARY_PATH=$CUDA_PATH/lib64:$LD_LIBRARY_PATH

# Iterate all the cases in the folder and plot comparison figures
for src in *.cu 
do
    name=${src%.cu}
    echo "$name"
    KERNEL=$name make output
done
make plot
